package beanstao.util.type.base;

import java.util.Calendar;
import java.util.Date;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

public class Datetime2Calendar extends Castor<java.util.Date, java.util.Calendar>
{

	@Override
	public Calendar cast(Date src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		Calendar c = Calendar.getInstance();
		c.setTime(src);
		return c;
	}

}
